#include <stdio.h>

int main()
{
	int a = 0;
	int b = 0;
	int count = 0;
	for (a = 1; a < 101; a++)
	{
		for (b = 1; b < 101; b++)
		{
			if ((a + b) % 3 == 0)
				count++;
		}
	}

	printf("%d\n", count / 2);

	return 0;
}